#ifndef __SMS_TEXTBOX__
#define __SMS_TEXTBOX__

#include <goocanvas.h>

#include "theme.h"

typedef struct _TextBox
{
	gdouble cavas_x;
	gdouble cavas_y;
	gdouble cavas_w;
	gdouble cavas_h;
	/*gdouble text_x;
	gdouble text_y;*/
	gdouble text_w;
	//gdouble vadjustment_lower;
	//gdouble vadjustment_upper;

	GooCanvasItem *text;
	GooCanvasItem *parent;
	GooCanvasItem *goo_scrolled_win;
	GooCanvasItem *background;
	GooCanvasItem *scrolled_canvas_root;
	GtkWidget *scrolled_win;
	GtkWidget *scrolled_canvas;
	GtkAdjustment *vadjustment;
	int bg_rgb;
	int font_rgb;
	Theme *theme;
}TextBox;

TextBox *textbox_new(GooCanvasItem *parent, gdouble cavas_x, gdouble cavas_y, gdouble cavas_w, gdouble cavas_h,
		                                    gdouble text_w, int bg_rgb, int font_rgb, Theme *theme);
//TextBox *textbox_new_with_bg(GooCanvasItem *parent, GdkPixbuf *bg);
gboolean textbox_set_text(TextBox *textbox, gchar *text);
gboolean textbox_set_background_rgb(TextBox *textbox, int rgb);
gboolean textbox_set_background_pixbuf(TextBox *textbox, GdkPixbuf *bg);
void textbox_destroy(TextBox *textbox);
gboolean textbox_hide(TextBox *textbox);
gboolean textbox_show(TextBox *textbox);
//gboolean textbox_translate(TextBox *textbox, int translate);

#endif
